package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PhotoRecordMapper;
import com.ruoyi.system.domain.PhotoRecord;
import com.ruoyi.system.service.IPhotoRecordService;

/**
 * 拍照记录Service业务层处理
 * 
 * @author xyz
 * @date 2025-05-30
 */
@Service
public class PhotoRecordServiceImpl implements IPhotoRecordService 
{
    @Autowired
    private PhotoRecordMapper photoRecordMapper;

    /**
     * 查询拍照记录
     * 
     * @param id 拍照记录主键
     * @return 拍照记录
     */
    @Override
    public PhotoRecord selectPhotoRecordById(Long id)
    {
        return photoRecordMapper.selectPhotoRecordById(id);
    }

    /**
     * 查询拍照记录列表
     * 
     * @param photoRecord 拍照记录
     * @return 拍照记录
     */
    @Override
    public List<PhotoRecord> selectPhotoRecordList(PhotoRecord photoRecord)
    {
        return photoRecordMapper.selectPhotoRecordList(photoRecord);
    }

    /**
     * 新增拍照记录
     * 
     * @param photoRecord 拍照记录
     * @return 结果
     */
    @Override
    public int insertPhotoRecord(PhotoRecord photoRecord)
    {
        return photoRecordMapper.insertPhotoRecord(photoRecord);
    }

    /**
     * 修改拍照记录
     * 
     * @param photoRecord 拍照记录
     * @return 结果
     */
    @Override
    public int updatePhotoRecord(PhotoRecord photoRecord)
    {
        return photoRecordMapper.updatePhotoRecord(photoRecord);
    }

    /**
     * 批量删除拍照记录
     * 
     * @param ids 需要删除的拍照记录主键
     * @return 结果
     */
    @Override
    public int deletePhotoRecordByIds(Long[] ids)
    {
        return photoRecordMapper.deletePhotoRecordByIds(ids);
    }

    /**
     * 删除拍照记录信息
     * 
     * @param id 拍照记录主键
     * @return 结果
     */
    @Override
    public int deletePhotoRecordById(Long id)
    {
        return photoRecordMapper.deletePhotoRecordById(id);
    }
}
